package com.cmc.cloud.cmclink.doc.vo.voyagebsacbavo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 周贤
 * @date 2025/8/22
 */
@Schema(description = "修改Allocation分类舱位数量 Request VO")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
public class VoyageBsaCbaQuantityVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14973")
    @NotNull(message = "{VoyageBsaCbaQuantityVO.id.NotNull}")
    private Long id;

    @Schema(description = "舱位增量类型 : + , -", requiredMode = Schema.RequiredMode.REQUIRED, example = "14973")
    @NotEmpty(message = "{VoyageBsaCbaQuantityVO.numOperateType.NotEmpty}")
    private String numOperateType;

    @Schema(description = "舱位增量数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "14973")
    private Integer allocationNum;

    @Schema(description = "冷插数增量类型 : + , -", requiredMode = Schema.RequiredMode.REQUIRED, example = "14973")
    @NotEmpty(message = "{VoyageBsaCbaQuantityVO.rfNumOperateType.NotEmpty}")
    private String rfNumOperateType;

    @Schema(description = "冷插数")
    private Integer rfNum;

    @Schema(description = "舱位说明")
    @Length(max = 50, message = "{VoyageBsaCbaQuantityVO.spaceIntruction.Length}")
    private String spaceIntruction;
}
